<?php echo $header; ?><?php echo $column_left; ?>
<div id="content">
  <div class="page-header">
    <div class="container-fluid">
      <div class="pull-right">
        <button type="submit" form="form-category" data-toggle="tooltip" title="<?php echo $button_save; ?>" class="btn btn-primary"><i class="fa fa-save"></i></button>
        <a href="<?php echo $cancel; ?>" data-toggle="tooltip" title="<?php echo $button_cancel; ?>" class="btn btn-default"><i class="fa fa-reply"></i></a></div>
      <h1><?php echo $heading_title; ?></h1>
      <ul class="breadcrumb">
        <?php foreach ($breadcrumbs as $breadcrumb) { ?>
        <li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>
        <?php } ?>
      </ul>
    </div>
  </div>
  <div class="container-fluid">
    <?php if ($error_warning) { ?>
    <div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> <?php echo $error_warning; ?>
      <button type="button" class="close" data-dismiss="alert">&times;</button>
    </div>
    <?php } ?>
    <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="panel-title"><i class="fa fa-pencil"></i> <?php echo $text_form; ?></h3>
      </div>
      <div class="panel-body">
        <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form-category" class="form-horizontal">
          <input type="hidden" name="project_progress_id" value="<?php echo $project_progress_id; ?>" > 
          <ul class="nav nav-tabs">
            <li class="active"><a href="#tab-general" data-toggle="tab"><?php echo $tab_general; ?></a></li>
          </ul>
          <div class="tab-content">
            <div class="tab-pane active" id="tab-general">
              <ul class="nav nav-tabs" id="language">
                <?php foreach ($languages as $language) { ?>
                <li><a href="#language<?php echo $language['language_id']; ?>" data-toggle="tab"><img src="view/image/flags/<?php echo $language['image']; ?>" title="<?php echo $language['name']; ?>" /> <?php echo $language['name']; ?></a></li>
                <?php } ?>
              </ul>
              <div class="tab-content">
                <?php foreach ($languages as $language) { ?>
                <div class="tab-pane" id="language<?php echo $language['language_id']; ?>">
                  
                  <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-status"><?php echo $entry_status; ?></label>
                    <div class="col-sm-10">
                      <select name="status" id="input-status" class="form-control">
                        <?php foreach($status_all as $statu){ ?>
                            <option value="<?php echo $statu['project_status_id']; ?>" <?php if($statu['project_status_id'] == $status){echo 'selected';} ?> ><?php echo $statu['name']; ?></option>
                        <?php } ?>
                      </select>
                    </div>
                  </div>

                  <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-ckg_number"><?php echo $entry_ckg_number; ?></label>
                    <div class="col-sm-10">
                      <input type="text" name="ckg_number" value="<?php echo $ckg_number; ?>" placeholder="<?php echo $entry_ckg_number; ?>" id="input-ckg_number" class="form-control" />
                      <?php  if (isset($error_ckg_number)) { ?>
                      <div class="text-danger"><?php echo $error_ckg_number; ?></div>
                      <?php } ?>

                    </div>
                  </div>
                  <div class="form-group required">
                    <label class="col-sm-2 control-label" for="input-project_name"><?php echo $entry_project_name; ?></label>
                    <div class="col-sm-10">
                      <input type="text" name="project_name" value="<?php echo $project_name; ?>" placeholder="<?php echo $entry_project_name; ?>" id="input-project_name" class="form-control" />
                      <?php  if (isset($error_project_name)) { ?>
                      <div class="text-danger"><?php echo $error_project_name; ?></div>
                      <?php } ?>
                    </div>
                  </div>

                  <div class="form-group required">
<<<<<<< HEAD
<<<<<<< HEAD
                    <label class="col-sm-2 control-label" for="input-project_source"><?php echo $entry_project_source; ?></label>
                    <div class="col-sm-10">
                      <input type="text" name="project_source" value="<?php echo $project_source; ?>" placeholder="<?php echo $entry_project_source; ?>" id="input-project_source" class="form-control" />
                    </div>
                  </div>


                  <div class="form-group required">
=======
>>>>>>> d186f0ac043b98de93b00ad49075690d01e0cbaa
=======
>>>>>>> d186f0ac043b98de93b00ad49075690d01e0cbaa
                    <label class="col-sm-2 control-label" for="input-project_customer"><?php echo $entry_project_customer; ?></label>
                    <div class="col-sm-10">
                      <input type="text" name="project_customer" value="<?php echo $project_customer; ?>" placeholder="<?php echo $entry_project_customer; ?>" id="input-project_customer" class="form-control" />
                      <input type="hidden" name="project_customer_id" value="<?php echo $project_customer_id; ?>" />
                      <?php if (isset($error_project_customer)) { ?>
                      <div class="text-danger"><?php echo $error_project_customer; ?></div>
                      <?php } ?>
                    </div>
                  </div>

                  <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-vendor_1"><?php echo $entry_vendor_1; ?></label>
                    <div class="col-sm-10">
                      <input type="text" name="vendor_1" value="<?php echo $vendor_1; ?>" placeholder="<?php echo $entry_vendor_1; ?>" id="input-vendor_1" class="form-control" />
                      <input type="hidden" name="vendor_1_id" value="<?php echo $vendor_1_id; ?>" />
<<<<<<< HEAD
<<<<<<< HEAD

=======
                      <?php if (isset($error_vendor_1)) { ?>
                      <div class="text-danger"><?php echo $error_vendor_1; ?></div>
                      <?php } ?>
>>>>>>> d186f0ac043b98de93b00ad49075690d01e0cbaa
=======
                      <?php if (isset($error_vendor_1)) { ?>
                      <div class="text-danger"><?php echo $error_vendor_1; ?></div>
                      <?php } ?>
>>>>>>> d186f0ac043b98de93b00ad49075690d01e0cbaa
                      <?php if (isset($error_vendor_details_1)) { ?>
                      <div class="text-danger"><?php echo $error_vendor_details_1; ?></div>
                      <?php } ?>
                      <?php if (isset($error_vendor_details_2)) { ?>
                      <div class="text-danger"><?php echo $error_vendor_details_2; ?></div>
                      <?php } ?>
<<<<<<< HEAD
<<<<<<< HEAD
                      <?php if (isset($error_vendor_address_1)) { ?>
                      <div class="text-danger"><?php echo $error_vendor_address_1; ?></div>
                      <?php } ?>
                      <?php if (isset($error_vendor_address_2)) { ?>
                      <div class="text-danger"><?php echo $error_vendor_address_2; ?></div>
                      <?php } ?>
                      <?php if (isset($error_vendor_address_3)) { ?>
                      <div class="text-danger"><?php echo $error_vendor_address_3; ?></div>
                      <?php } ?>
=======
>>>>>>> d186f0ac043b98de93b00ad49075690d01e0cbaa
=======
>>>>>>> d186f0ac043b98de93b00ad49075690d01e0cbaa
                    </div>
                  </div>
                  <div class="form-group required">
                    <label class="col-sm-2 control-label" for="input-vendor_quote_1"><?php echo $entry_vendor_quote_1; ?></label>
                    <div class="col-sm-10">
                      <input type="text" name="vendor_quote_1" value="<?php echo $vendor_quote_1; ?>" placeholder="<?php echo $entry_vendor_quote_1; ?>" id="input-vendor_quote_1" class="form-control" />
                      <!-- <input type="hidden" name="vendor_quote_1_id" value="<?php echo $vendor_quote_1_id; ?>" /> -->
                      <?php if (isset($error_vendor_quote_1)) { ?>
                      <div class="text-danger"><?php echo $error_vendor_quote_1; ?></div>
                      <?php } ?>
                    </div>
                  </div>                  
                  <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-vendor_2"><?php echo $entry_vendor_2; ?></label>
                    <div class="col-sm-10">
                      <input type="text" name="vendor_2" value="<?php echo $vendor_2; ?>" placeholder="<?php echo $entry_vendor_2; ?>" id="input-vendor_2" class="form-control" />
                      <input type="hidden" name="vendor_2_id" value="<?php echo $vendor_2_id; ?>" />
<<<<<<< HEAD
<<<<<<< HEAD

                      <?php if (isset($error_vendor_details_3)) { ?>
                      <div class="text-danger"><?php echo $error_vendor_details_3; ?></div>
                      <?php } ?>
                      <?php if (isset($error_vendor_address_4)) { ?>
                      <div class="text-danger"><?php echo $error_vendor_address_4; ?></div>
                      <?php } ?>
                      <?php if (isset($error_vendor_address_5)) { ?>
                      <div class="text-danger"><?php echo $error_vendor_address_5; ?></div>
                      <?php } ?>
=======
=======
>>>>>>> d186f0ac043b98de93b00ad49075690d01e0cbaa
                      <?php if (isset($error_vendor_2)) { ?>
                      <div class="text-danger"><?php echo $error_vendor_2; ?></div>
                      <?php } ?>
                      <?php if (isset($error_vendor_details_3)) { ?>
                      <div class="text-danger"><?php echo $error_vendor_details_3; ?></div>
                      <?php } ?>
<<<<<<< HEAD
>>>>>>> d186f0ac043b98de93b00ad49075690d01e0cbaa
=======
>>>>>>> d186f0ac043b98de93b00ad49075690d01e0cbaa
                    </div>
                  </div>
                  <div class="form-group required">
                    <label class="col-sm-2 control-label" for="input-vendor_quote_2"><?php echo $entry_vendor_quote_2; ?></label>
                    <div class="col-sm-10">
                      <input type="text" name="vendor_quote_2" value="<?php echo $vendor_quote_2; ?>" placeholder="<?php echo $entry_vendor_quote_2; ?>" id="input-vendor_quote_2" class="form-control" />
                      <!-- <input type="hidden" name="vendor_quote_2_id" value="<?php echo $vendor_quote_2_id; ?>" /> -->
                      <?php if (isset($error_vendor_quote_2)) { ?>
                      <div class="text-danger"><?php echo $error_vendor_quote_2; ?></div>
                      <?php } ?>
                    </div>
                  </div> 
                  <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-vendor_3"><?php echo $entry_vendor_3; ?></label>
                    <div class="col-sm-10">
                      <input type="text" name="vendor_3" value="<?php echo $vendor_3; ?>" placeholder="<?php echo $entry_vendor_3; ?>" id="input-vendor_3" class="form-control" />
                      <input type="hidden" name="vendor_3_id" value="<?php echo $vendor_3_id; ?>" />
<<<<<<< HEAD
<<<<<<< HEAD

                      <?php if (isset($error_vendor_address_6)) { ?>
                      <div class="text-danger"><?php echo $error_vendor_address_6; ?></div>
=======
                      <?php if (isset($error_vendor_3)) { ?>
                      <div class="text-danger"><?php echo $error_vendor_3; ?></div>
>>>>>>> d186f0ac043b98de93b00ad49075690d01e0cbaa
=======
                      <?php if (isset($error_vendor_3)) { ?>
                      <div class="text-danger"><?php echo $error_vendor_3; ?></div>
>>>>>>> d186f0ac043b98de93b00ad49075690d01e0cbaa
                      <?php } ?>
                    </div>
                  </div>
                  <div class="form-group required">
                    <label class="col-sm-2 control-label" for="input-vendor_quote_3"><?php echo $entry_vendor_quote_3; ?></label>
                    <div class="col-sm-10">
                      <input type="text" name="vendor_quote_3" value="<?php echo $vendor_quote_3; ?>" placeholder="<?php echo $entry_vendor_quote_3; ?>" id="input-vendor_quote_3" class="form-control" />
                      <!-- <input type="hidden" name="vendor_quote_3_id" value="<?php echo $vendor_quote_3_id; ?>" /> -->
                      <?php if (isset($error_vendor_quote_3)) { ?>
                      <div class="text-danger"><?php echo $error_vendor_quote_3; ?></div>
                      <?php } ?>
                    </div>
                  </div> 
                  <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-no_1_name" ><?php echo $entry_no_1; ?></label>
                    <div class="col-sm-10">
                      <div class="layui-upload" style="margin-bottom: 10px;">
                        <button type="button" class="layui-btn layui-btn-normal testList" data-name="no_1"><?php echo $button_upload; ?></button>
                      </div> 
                    </div>
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-10 no_1">
                      <?php if(isset($no_1_childs)){ ?>
                        <?php foreach($no_1_childs as $key => $value){ ?>
                            <div class="<?php echo 'no_1_child_'.$value['project_file_id']; ?>">
                              <div class="input-group">
                                <input type="text" name="<?php echo 'no_1_name['.$value['project_file_id'].']'; ?>" value="<?php echo $value['file_name'] ?>" id="input-no_1_name" class="form-control" />
                                <input type="hidden" name="<?php echo 'no_1_child['.$value['project_file_id'].']'; ?>" value="<?php echo $value['project_file_id'] ?>" class="form-control" />
                                <span class="input-group-btn">
                                  <a target="_blank" href="<?php echo HTTP_CATALOG.substr($value['file_url'],54);?>" class="btn btn-primary"><i class="fa fa-eye"></i>查看</a>
                                  <button type="button" data-type="no_1_child_<?php echo $value['project_file_id'] ?>" data-name="<?php echo $value['project_file_id'] ?>"  data-id="no_1" data-loading-text="<?php echo $text_loading; ?>" class="button-clear btn btn-danger"><i class="fa fa-eraser"></i> <?php echo $button_clear; ?>
                                  </button>
                                </span>
                              </div>
                            </div>
                        <?php } ?>
                      <?php } ?>
                    </div>
                  </div>


                  <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-no_2"><?php echo $entry_no_2; ?></label>
                    <div class="col-sm-3">
                      <div class="input-group date">
                        <input type="text" name="no_2" value="<?php echo $no_2; ?>" placeholder="<?php echo $entry_no_2; ?>" data-date-format="YYYY-MM-DD" id="input-date-available" class="form-control" />
                        <span class="input-group-btn">
                        <button class="btn btn-default" type="button"><i class="fa fa-calendar"></i></button>
                        </span></div>
                    </div>
                  </div>

                  <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-no_3"><?php echo $entry_no_3; ?></label>
                    <div class="col-sm-10">
                      <input type="text" name="no_3" value="<?php echo $no_3; ?>" placeholder="<?php echo $entry_no_3; ?>" id="input-no_3" class="form-control" /> 
                    </div>
                  </div>

                  <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-no_4"><?php echo $entry_no_4; ?></label>
                    <div class="col-sm-10">
                      <input type="text" name="no_4" value="<?php echo $no_4 ?>" placeholder="<?php echo $entry_no_4; ?>" id="input-no_4" class="form-control" /> 
                    </div>
                  </div>


                  <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-no_5_name" ><?php echo $entry_no_5; ?></label>
                    <div class="col-sm-10">
                      <div class="layui-upload" style="margin-bottom: 10px;">
                        <button type="button" class="layui-btn layui-btn-normal testList" data-name="no_5"><?php echo $button_upload; ?></button>
                      </div> 
                    </div>
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-10 no_5">
                      <?php if(isset($no_5_childs)){ ?>
                        <?php foreach($no_5_childs as $key => $value){ ?>
                            <div class="<?php echo 'no_5_child_'.$value['project_file_id']; ?>">
                              <div class="input-group">
                                <input type="text" name="<?php echo 'no_5_name['.$value['project_file_id'].']'; ?>" value="<?php echo $value['file_name'] ?>" id="input-no_5_name" class="form-control" />
                                <input type="hidden" name="<?php echo 'no_5_child['.$value['project_file_id'].']'; ?>" value="<?php echo $value['project_file_id'] ?>" class="form-control" />
                                <span class="input-group-btn">
                                  <a target="_blank" href="<?php echo HTTP_CATALOG.substr($value['file_url'],54);?>" class="btn btn-primary"><i class="fa fa-eye"></i>查看</a>
                                  <button type="button" data-type="no_5_child_<?php echo $value['project_file_id'] ?>" data-name="<?php echo $value['project_file_id'] ?>"  data-id="no_5" data-loading-text="<?php echo $text_loading; ?>" class="button-clear btn btn-danger"><i class="fa fa-eraser"></i> <?php echo $button_clear; ?>
                                  </button>
                                </span>
                              </div>
                            </div>
                        <?php } ?>
                      <?php } ?>
                    </div>
                  </div>

                  <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-no_6_name" ><?php echo $entry_no_6; ?></label>
                    <div class="col-sm-10">
                      <div class="layui-upload" style="margin-bottom: 10px;">
                        <button type="button" class="layui-btn layui-btn-normal testList" data-name="no_6"><?php echo $button_upload; ?></button>
                      </div> 
                    </div>
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-10 no_6">
                      <?php if(isset($no_6_childs)){ ?>
                        <?php foreach($no_6_childs as $key => $value){ ?>
                            <div class="<?php echo 'no_6_child_'.$value['project_file_id']; ?>">
                              <div class="input-group">
                                <input type="text" name="<?php echo 'no_6_name['.$value['project_file_id'].']'; ?>" value="<?php echo $value['file_name'] ?>" id="input-no_6_name" class="form-control" />
                                <input type="hidden" name="<?php echo 'no_6_child['.$value['project_file_id'].']'; ?>" value="<?php echo $value['project_file_id'] ?>" class="form-control" />
                                <span class="input-group-btn">
                                  <a target="_blank" href="<?php echo HTTP_CATALOG.substr($value['file_url'],54);?>" class="btn btn-primary"><i class="fa fa-eye"></i>查看</a>
                                  <button type="button" data-type="no_6_child_<?php echo $value['project_file_id'] ?>" data-name="<?php echo $value['project_file_id'] ?>"  data-id="no_6" data-loading-text="<?php echo $text_loading; ?>" class="button-clear btn btn-danger"><i class="fa fa-eraser"></i> <?php echo $button_clear; ?>
                                  </button>
                                </span>
                              </div>
                            </div>
                        <?php } ?>
                      <?php } ?>
                    </div>
                  </div>

                  <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-no_7_name" ><?php echo $entry_no_7; ?></label>
                    <div class="col-sm-10">
                      <div class="layui-upload" style="margin-bottom: 10px;">
                        <button type="button" class="layui-btn layui-btn-normal testList" data-name="no_7"><?php echo $button_upload; ?></button>
                      </div> 
                    </div>
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-10 no_7">
                      <?php if(isset($no_7_childs)){ ?>
                        <?php foreach($no_7_childs as $key => $value){ ?>
                            <div class="<?php echo 'no_7_child_'.$value['project_file_id']; ?>">
                              <div class="input-group">
                                <input type="text" name="<?php echo 'no_7_name['.$value['project_file_id'].']'; ?>" value="<?php echo $value['file_name'] ?>" id="input-no_7_name" class="form-control" />
                                <input type="hidden" name="<?php echo 'no_7_child['.$value['project_file_id'].']'; ?>" value="<?php echo $value['project_file_id'] ?>" class="form-control" />
                                <span class="input-group-btn">
                                  <a target="_blank" href="<?php echo HTTP_CATALOG.substr($value['file_url'],54);?>" class="btn btn-primary"><i class="fa fa-eye"></i>查看</a>
                                  <button type="button" data-type="no_7_child_<?php echo $value['project_file_id'] ?>" data-name="<?php echo $value['project_file_id'] ?>"  data-id="no_7" data-loading-text="<?php echo $text_loading; ?>" class="button-clear btn btn-danger"><i class="fa fa-eraser"></i> <?php echo $button_clear; ?>
                                  </button>
                                </span>
                              </div>
                            </div>
                        <?php } ?>
                      <?php } ?>
                    </div>
                  </div>

                  <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-no_8_name" ><?php echo $entry_no_8; ?></label>
                    <div class="col-sm-10">
                      <div class="layui-upload" style="margin-bottom: 10px;">
                        <button type="button" class="layui-btn layui-btn-normal testList" data-name="no_8"><?php echo $button_upload; ?></button>
                      </div> 
                    </div>
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-10 no_8">
                      <?php if(isset($no_8_childs)){ ?>
                        <?php foreach($no_8_childs as $key => $value){ ?>
                            <div class="<?php echo 'no_8_child_'.$value['project_file_id']; ?>">
                              <div class="input-group">
                                <input type="text" name="<?php echo 'no_8_name['.$value['project_file_id'].']'; ?>" value="<?php echo $value['file_name'] ?>" id="input-no_8_name" class="form-control" />
                                <input type="hidden" name="<?php echo 'no_8_child['.$value['project_file_id'].']'; ?>" value="<?php echo $value['project_file_id'] ?>" class="form-control" />
                                <span class="input-group-btn">
                                  <a target="_blank" href="<?php echo HTTP_CATALOG.substr($value['file_url'],54);?>" class="btn btn-primary"><i class="fa fa-eye"></i>查看</a>
                                  <button type="button" data-type="no_8_child_<?php echo $value['project_file_id'] ?>" data-name="<?php echo $value['project_file_id'] ?>"  data-id="no_8" data-loading-text="<?php echo $text_loading; ?>" class="button-clear btn btn-danger"><i class="fa fa-eraser"></i> <?php echo $button_clear; ?>
                                  </button>
                                </span>
                              </div>
                            </div>
                        <?php } ?>
                      <?php } ?>
                    </div>
                  </div>

                  <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-no_9_name" ><?php echo $entry_no_9; ?></label>
                    <div class="col-sm-10">
                      <div class="layui-upload" style="margin-bottom: 10px;">
                        <button type="button" class="layui-btn layui-btn-normal testList" data-name="no_9"><?php echo $button_upload; ?></button>
                      </div> 
                    </div>
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-10 no_9">
                      <?php if(isset($no_9_childs)){ ?>
                        <?php foreach($no_9_childs as $key => $value){ ?>
                            <div class="<?php echo 'no_9_child_'.$value['project_file_id']; ?>">
                              <div class="input-group">
                                <input type="text" name="<?php echo 'no_9_name['.$value['project_file_id'].']'; ?>" value="<?php echo $value['file_name'] ?>" id="input-no_9_name" class="form-control" />
                                <input type="hidden" name="<?php echo 'no_9_child['.$value['project_file_id'].']'; ?>" value="<?php echo $value['project_file_id'] ?>" class="form-control" />
                                <span class="input-group-btn">
                                  <a target="_blank" href="<?php echo HTTP_CATALOG.substr($value['file_url'],54);?>" class="btn btn-primary"><i class="fa fa-eye"></i>查看</a>
                                  <button type="button" data-type="no_9_child_<?php echo $value['project_file_id'] ?>" data-name="<?php echo $value['project_file_id'] ?>"  data-id="no_9" data-loading-text="<?php echo $text_loading; ?>" class="button-clear btn btn-danger"><i class="fa fa-eraser"></i> <?php echo $button_clear; ?>
                                  </button>
                                </span>
                              </div>
                            </div>
                        <?php } ?>
                      <?php } ?>
                    </div>
                  </div>

                  <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-no_10_name" ><?php echo $entry_no_10; ?></label>
                    <div class="col-sm-10">
                      <div class="layui-upload" style="margin-bottom: 10px;">
                        <button type="button" class="layui-btn layui-btn-normal testList" data-name="no_10"><?php echo $button_upload; ?></button>
                      </div> 
                    </div>
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-10 no_10">
                      <?php if(isset($no_10_childs)){ ?>
                        <?php foreach($no_10_childs as $key => $value){ ?>
                            <div class="<?php echo 'no_10_child_'.$value['project_file_id']; ?>">
                              <div class="input-group">
                                <input type="text" name="<?php echo 'no_10_name['.$value['project_file_id'].']'; ?>" value="<?php echo $value['file_name'] ?>" id="input-no_10_name" class="form-control" />
                                <input type="hidden" name="<?php echo 'no_10_child['.$value['project_file_id'].']'; ?>" value="<?php echo $value['project_file_id'] ?>" class="form-control" />
                                <span class="input-group-btn">
                                  <a target="_blank" href="<?php echo HTTP_CATALOG.substr($value['file_url'],54);?>" class="btn btn-primary"><i class="fa fa-eye"></i>查看</a>
                                  <button type="button" data-type="no_10_child_<?php echo $value['project_file_id'] ?>" data-name="<?php echo $value['project_file_id'] ?>"  data-id="no_10" data-loading-text="<?php echo $text_loading; ?>" class="button-clear btn btn-danger"><i class="fa fa-eraser"></i> <?php echo $button_clear; ?>
                                  </button>
                                </span>
                              </div>
                            </div>
                        <?php } ?>
                      <?php } ?>
                    </div>
                  </div>

                  <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-no_11_name" ><?php echo $entry_no_11; ?></label>
                    <div class="col-sm-10">
                      <div class="layui-upload" style="margin-bottom: 10px;">
                        <button type="button" class="layui-btn layui-btn-normal testList" data-name="no_11"><?php echo $button_upload; ?></button>
                      </div> 
                    </div>
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-10 no_11">
                      <?php if(isset($no_11_childs)){ ?>
                        <?php foreach($no_11_childs as $key => $value){ ?>
                            <div class="<?php echo 'no_11_child_'.$value['project_file_id']; ?>">
                              <div class="input-group">
                                <input type="text" name="<?php echo 'no_11_name['.$value['project_file_id'].']'; ?>" value="<?php echo $value['file_name'] ?>" id="input-no_11_name" class="form-control" />
                                <input type="hidden" name="<?php echo 'no_11_child['.$value['project_file_id'].']'; ?>" value="<?php echo $value['project_file_id'] ?>" class="form-control" />
                                <span class="input-group-btn">
                                  <a target="_blank" href="<?php echo HTTP_CATALOG.substr($value['file_url'],54);?>" class="btn btn-primary"><i class="fa fa-eye"></i>查看</a>
                                  <button type="button" data-type="no_11_child_<?php echo $value['project_file_id'] ?>" data-name="<?php echo $value['project_file_id'] ?>"  data-id="no_11" data-loading-text="<?php echo $text_loading; ?>" class="button-clear btn btn-danger"><i class="fa fa-eraser"></i> <?php echo $button_clear; ?>
                                  </button>
                                </span>
                              </div>
                            </div>
                        <?php } ?>
                      <?php } ?>
                    </div>
                  </div>

                  <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-no_12_name" ><?php echo $entry_no_12; ?></label>
                    <div class="col-sm-10">
                      <div class="layui-upload" style="margin-bottom: 10px;">
                        <button type="button" class="layui-btn layui-btn-normal testList" data-name="no_12"><?php echo $button_upload; ?></button>
                      </div> 
                    </div>
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-10 no_12">
                      <?php if(isset($no_12_childs)){ ?>
                        <?php foreach($no_12_childs as $key => $value){ ?>
                            <div class="<?php echo 'no_12_child_'.$value['project_file_id']; ?>">
                              <div class="input-group">
                                <input type="text" name="<?php echo 'no_12_name['.$value['project_file_id'].']'; ?>" value="<?php echo $value['file_name'] ?>" id="input-no_12_name" class="form-control" />
                                <input type="hidden" name="<?php echo 'no_12_child['.$value['project_file_id'].']'; ?>" value="<?php echo $value['project_file_id'] ?>" class="form-control" />
                                <span class="input-group-btn">
                                  <a target="_blank" href="<?php echo HTTP_CATALOG.substr($value['file_url'],54);?>" class="btn btn-primary"><i class="fa fa-eye"></i>查看</a>
                                  <button type="button" data-type="no_12_child_<?php echo $value['project_file_id'] ?>" data-name="<?php echo $value['project_file_id'] ?>"  data-id="no_12" data-loading-text="<?php echo $text_loading; ?>" class="button-clear btn btn-danger"><i class="fa fa-eraser"></i> <?php echo $button_clear; ?>
                                  </button>
                                </span>
                              </div>
                            </div>
                        <?php } ?>
                      <?php } ?>
                    </div>
                  </div>

                  <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-no_13_name" ><?php echo $entry_no_13; ?></label>
                    <div class="col-sm-10">
                      <div class="layui-upload" style="margin-bottom: 10px;">
                        <button type="button" class="layui-btn layui-btn-normal testList" data-name="no_13"><?php echo $button_upload; ?></button>
                      </div> 
                    </div>
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-10 no_13">
                      <?php if(isset($no_13_childs)){ ?>
                        <?php foreach($no_13_childs as $key => $value){ ?>
                            <div class="<?php echo 'no_13_child_'.$value['project_file_id']; ?>">
                              <div class="input-group">
                                <input type="text" name="<?php echo 'no_13_name['.$value['project_file_id'].']'; ?>" value="<?php echo $value['file_name'] ?>" id="input-no_13_name" class="form-control" />
                                <input type="hidden" name="<?php echo 'no_13_child['.$value['project_file_id'].']'; ?>" value="<?php echo $value['project_file_id'] ?>" class="form-control" />
                                <span class="input-group-btn">
                                  <a target="_blank" href="<?php echo HTTP_CATALOG.substr($value['file_url'],54);?>" class="btn btn-primary"><i class="fa fa-eye"></i>查看</a>
                                  <button type="button" data-type="no_13_child_<?php echo $value['project_file_id'] ?>" data-name="<?php echo $value['project_file_id'] ?>"  data-id="no_13" data-loading-text="<?php echo $text_loading; ?>" class="button-clear btn btn-danger"><i class="fa fa-eraser"></i> <?php echo $button_clear; ?>
                                  </button>
                                </span>
                              </div>
                            </div>
                        <?php } ?>
                      <?php } ?>
                    </div>
                  </div>

<!--                   <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-no_14_name" ><?php echo $entry_no_14; ?></label>
                    <div class="col-sm-10">
                      <div class="layui-upload" style="margin-bottom: 10px;">
                        <button type="button" class="layui-btn layui-btn-normal testList" data-name="no_14"><?php echo $button_upload; ?></button>
                      </div> 
                    </div>
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-10 no_14">
                      <?php if(isset($no_14_childs)){ ?>
                        <?php foreach($no_14_childs as $key => $value){ ?>
                            <div class="<?php echo 'no_14_child_'.$value['project_file_id']; ?>">
                              <div class="input-group">
                                <input type="text" name="<?php echo 'no_14_name['.$value['project_file_id'].']'; ?>" value="<?php echo $value['file_name'] ?>" id="input-no_14_name" class="form-control" />
                                <input type="hidden" name="<?php echo 'no_14_child['.$value['project_file_id'].']'; ?>" value="<?php echo $value['project_file_id'] ?>" class="form-control" />
                                <span class="input-group-btn">
                                  <a target="_blank" href="<?php echo HTTP_CATALOG.substr($value['file_url'],54);?>" class="btn btn-primary"><i class="fa fa-eye"></i>查看</a>
                                  <button type="button" data-type="no_14_child_<?php echo $value['project_file_id'] ?>" data-name="<?php echo $value['project_file_id'] ?>"  data-id="no_14" data-loading-text="<?php echo $text_loading; ?>" class="button-clear btn btn-danger"><i class="fa fa-eraser"></i> <?php echo $button_clear; ?>
                                  </button>
                                </span>
                              </div>
                            </div>
                        <?php } ?>
                      <?php } ?>
                    </div>
                  </div> -->

                  <!-- <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-no_15_name" ><?php echo $entry_no_15; ?></label>
                    <div class="col-sm-10">
                      <div class="layui-upload" style="margin-bottom: 10px;">
                        <button type="button" class="layui-btn layui-btn-normal testList" data-name="no_15"><?php echo $button_upload; ?></button>
                      </div> 
                    </div>
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-10 no_15">
                      <?php if(isset($no_15_childs)){ ?>
                        <?php foreach($no_15_childs as $key => $value){ ?>
                            <div class="<?php echo 'no_15_child_'.$value['project_file_id']; ?>">
                              <div class="input-group">
                                <input type="text" name="<?php echo 'no_15_name['.$value['project_file_id'].']'; ?>" value="<?php echo $value['file_name'] ?>" id="input-no_15_name" class="form-control" />
                                <input type="hidden" name="<?php echo 'no_15_child['.$value['project_file_id'].']'; ?>" value="<?php echo $value['project_file_id'] ?>" class="form-control" />
                                <span class="input-group-btn">
                                  <a target="_blank" href="<?php echo HTTP_CATALOG.substr($value['file_url'],54);?>" class="btn btn-primary"><i class="fa fa-eye"></i>查看</a>
                                  <button type="button" data-type="no_15_child_<?php echo $value['project_file_id'] ?>" data-name="<?php echo $value['project_file_id'] ?>"  data-id="no_15" data-loading-text="<?php echo $text_loading; ?>" class="button-clear btn btn-danger"><i class="fa fa-eraser"></i> <?php echo $button_clear; ?>
                                  </button>
                                </span>
                              </div>
                            </div>
                        <?php } ?>
                      <?php } ?>
                    </div>
                  </div> -->

                  <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-no_16_name" ><?php echo $entry_no_16; ?></label>
                    <div class="col-sm-10">
                      <div class="layui-upload" style="margin-bottom: 10px;">
                        <button type="button" class="layui-btn layui-btn-normal testList" data-name="no_16"><?php echo $button_upload; ?></button>
                      </div> 
                    </div>
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-10 no_16">
                      <?php if(isset($no_16_childs)){ ?>
                        <?php foreach($no_16_childs as $key => $value){ ?>
                            <div class="<?php echo 'no_16_child_'.$value['project_file_id']; ?>">
                              <div class="input-group">
                                <input type="text" name="<?php echo 'no_16_name['.$value['project_file_id'].']'; ?>" value="<?php echo $value['file_name'] ?>" id="input-no_16_name" class="form-control" />
                                <input type="hidden" name="<?php echo 'no_16_child['.$value['project_file_id'].']'; ?>" value="<?php echo $value['project_file_id'] ?>" class="form-control" />
                                <span class="input-group-btn">
                                  <a target="_blank" href="<?php echo HTTP_CATALOG.substr($value['file_url'],54);?>" class="btn btn-primary"><i class="fa fa-eye"></i>查看</a>
                                  <button type="button" data-type="no_16_child_<?php echo $value['project_file_id'] ?>" data-name="<?php echo $value['project_file_id'] ?>"  data-id="no_16" data-loading-text="<?php echo $text_loading; ?>" class="button-clear btn btn-danger"><i class="fa fa-eraser"></i> <?php echo $button_clear; ?>
                                  </button>
                                </span>
                              </div>
                            </div>
                        <?php } ?>
                      <?php } ?>
                    </div>
                  </div>

                  <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-no_17_name" ><?php echo $entry_no_17; ?></label>
                    <div class="col-sm-10">
                      <div class="layui-upload" style="margin-bottom: 10px;">
                        <button type="button" class="layui-btn layui-btn-normal testList" data-name="no_17"><?php echo $button_upload; ?></button>
                      </div> 
                    </div>
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-10 no_17">
                      <?php if(isset($no_17_childs)){ ?>
                        <?php foreach($no_17_childs as $key => $value){ ?>
                            <div class="<?php echo 'no_17_child_'.$value['project_file_id']; ?>">
                              <div class="input-group">
                                <input type="text" name="<?php echo 'no_17_name['.$value['project_file_id'].']'; ?>" value="<?php echo $value['file_name'] ?>" id="input-no_17_name" class="form-control" />
                                <input type="hidden" name="<?php echo 'no_17_child['.$value['project_file_id'].']'; ?>" value="<?php echo $value['project_file_id'] ?>" class="form-control" />
                                <span class="input-group-btn">
                                  <a target="_blank" href="<?php echo HTTP_CATALOG.substr($value['file_url'],54);?>" class="btn btn-primary"><i class="fa fa-eye"></i>查看</a>
                                  <button type="button" data-type="no_17_child_<?php echo $value['project_file_id'] ?>" data-name="<?php echo $value['project_file_id'] ?>"  data-id="no_17" data-loading-text="<?php echo $text_loading; ?>" class="button-clear btn btn-danger"><i class="fa fa-eraser"></i> <?php echo $button_clear; ?>
                                  </button>
                                </span>
                              </div>
                            </div>
                        <?php } ?>
                      <?php } ?>
                    </div>
                  </div>
<<<<<<< HEAD
<<<<<<< HEAD

                  <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-no_18_name" ><?php echo $entry_no_18; ?></label>
                    <div class="col-sm-10">
                      <div class="layui-upload" style="margin-bottom: 10px;">
                        <button type="button" class="layui-btn layui-btn-normal testList" data-name="no_18"><?php echo $button_upload; ?></button>
                      </div> 
                    </div>
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-10 no_18">
                      <?php if(isset($no_18_childs)){ ?>
                        <?php foreach($no_18_childs as $key => $value){ ?>
                            <div class="<?php echo 'no_18_child_'.$value['project_file_id']; ?>">
                              <div class="input-group">
                                <input type="text" name="<?php echo 'no_18_name['.$value['project_file_id'].']'; ?>" value="<?php echo $value['file_name'] ?>" id="input-no_18_name" class="form-control" />
                                <input type="hidden" name="<?php echo 'no_18_child['.$value['project_file_id'].']'; ?>" value="<?php echo $value['project_file_id'] ?>" class="form-control" />
                                <span class="input-group-btn">
                                  <a target="_blank" href="<?php echo HTTP_CATALOG.substr($value['file_url'],54);?>" class="btn btn-primary"><i class="fa fa-eye"></i>查看</a>
                                  <button type="button" data-type="no_18_child_<?php echo $value['project_file_id'] ?>" data-name="<?php echo $value['project_file_id'] ?>"  data-id="no_18" data-loading-text="<?php echo $text_loading; ?>" class="button-clear btn btn-danger"><i class="fa fa-eraser"></i> <?php echo $button_clear; ?>
                                  </button>
                                </span>
                              </div>
                            </div>
                        <?php } ?>
                      <?php } ?>
                    </div>
                  </div>


                  <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-no_19_name" ><?php echo $entry_no_19; ?></label>
                    <div class="col-sm-10">
                      <div class="layui-upload" style="margin-bottom: 10px;">
                        <button type="button" class="layui-btn layui-btn-normal testList" data-name="no_19"><?php echo $button_upload; ?></button>
                      </div> 
                    </div>
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-10 no_19">
                      <?php if(isset($no_19_childs)){ ?>
                        <?php foreach($no_19_childs as $key => $value){ ?>
                            <div class="<?php echo 'no_19_child_'.$value['project_file_id']; ?>">
                              <div class="input-group">
                                <input type="text" name="<?php echo 'no_19_name['.$value['project_file_id'].']'; ?>" value="<?php echo $value['file_name'] ?>" id="input-no_19_name" class="form-control" />
                                <input type="hidden" name="<?php echo 'no_19_child['.$value['project_file_id'].']'; ?>" value="<?php echo $value['project_file_id'] ?>" class="form-control" />
                                <span class="input-group-btn">
                                  <a target="_blank" href="<?php echo HTTP_CATALOG.substr($value['file_url'],54);?>" class="btn btn-primary"><i class="fa fa-eye"></i>查看</a>
                                  <button type="button" data-type="no_19_child_<?php echo $value['project_file_id'] ?>" data-name="<?php echo $value['project_file_id'] ?>"  data-id="no_19" data-loading-text="<?php echo $text_loading; ?>" class="button-clear btn btn-danger"><i class="fa fa-eraser"></i> <?php echo $button_clear; ?>
                                  </button>
                                </span>
                              </div>
                            </div>
                        <?php } ?>
                      <?php } ?>
                    </div>
                  </div>

                  <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-no_20_name" ><?php echo $entry_no_20; ?></label>
                    <div class="col-sm-10">
                      <div class="layui-upload" style="margin-bottom: 10px;">
                        <button type="button" class="layui-btn layui-btn-normal testList" data-name="no_20"><?php echo $button_upload; ?></button>
                      </div> 
                    </div>
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-10 no_20">
                      <?php if(isset($no_20_childs)){ ?>
                        <?php foreach($no_20_childs as $key => $value){ ?>
                            <div class="<?php echo 'no_20_child_'.$value['project_file_id']; ?>">
                              <div class="input-group">
                                <input type="text" name="<?php echo 'no_20_name['.$value['project_file_id'].']'; ?>" value="<?php echo $value['file_name'] ?>" id="input-no_20_name" class="form-control" />
                                <input type="hidden" name="<?php echo 'no_20_child['.$value['project_file_id'].']'; ?>" value="<?php echo $value['project_file_id'] ?>" class="form-control" />
                                <span class="input-group-btn">
                                  <a target="_blank" href="<?php echo HTTP_CATALOG.substr($value['file_url'],54);?>" class="btn btn-primary"><i class="fa fa-eye"></i>查看</a>
                                  <button type="button" data-type="no_20_child_<?php echo $value['project_file_id'] ?>" data-name="<?php echo $value['project_file_id'] ?>"  data-id="no_20" data-loading-text="<?php echo $text_loading; ?>" class="button-clear btn btn-danger"><i class="fa fa-eraser"></i> <?php echo $button_clear; ?>
                                  </button>
                                </span>
                              </div>
                            </div>
                        <?php } ?>
                      <?php } ?>
                    </div>
                  </div>

                  <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-no_21_name" ><?php echo $entry_no_21; ?></label>
                    <div class="col-sm-10">
                      <div class="layui-upload" style="margin-bottom: 10px;">
                        <button type="button" class="layui-btn layui-btn-normal testList" data-name="no_21"><?php echo $button_upload; ?></button>
                      </div> 
                    </div>
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-10 no_21">
                      <?php if(isset($no_21_childs)){ ?>
                        <?php foreach($no_21_childs as $key => $value){ ?>
                            <div class="<?php echo 'no_21_child_'.$value['project_file_id']; ?>">
                              <div class="input-group">
                                <input type="text" name="<?php echo 'no_21_name['.$value['project_file_id'].']'; ?>" value="<?php echo $value['file_name'] ?>" id="input-no_21_name" class="form-control" />
                                <input type="hidden" name="<?php echo 'no_21_child['.$value['project_file_id'].']'; ?>" value="<?php echo $value['project_file_id'] ?>" class="form-control" />
                                <span class="input-group-btn">
                                  <a target="_blank" href="<?php echo HTTP_CATALOG.substr($value['file_url'],54);?>" class="btn btn-primary"><i class="fa fa-eye"></i>查看</a>
                                  <button type="button" data-type="no_21_child_<?php echo $value['project_file_id'] ?>" data-name="<?php echo $value['project_file_id'] ?>"  data-id="no_21" data-loading-text="<?php echo $text_loading; ?>" class="button-clear btn btn-danger"><i class="fa fa-eraser"></i> <?php echo $button_clear; ?>
                                  </button>
                                </span>
                              </div>
                            </div>
                        <?php } ?>
                      <?php } ?>
                    </div>
                  </div>


                  <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-no_22_name" ><?php echo $entry_no_22; ?></label>
                    <div class="col-sm-10">
                      <div class="layui-upload" style="margin-bottom: 10px;">
                        <button type="button" class="layui-btn layui-btn-normal testList" data-name="no_22"><?php echo $button_upload; ?></button>
                      </div> 
                    </div>
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-10 no_22">
                      <?php if(isset($no_22_childs)){ ?>
                        <?php foreach($no_22_childs as $key => $value){ ?>
                            <div class="<?php echo 'no_22_child_'.$value['project_file_id']; ?>">
                              <div class="input-group">
                                <input type="text" name="<?php echo 'no_22_name['.$value['project_file_id'].']'; ?>" value="<?php echo $value['file_name'] ?>" id="input-no_22_name" class="form-control" />
                                <input type="hidden" name="<?php echo 'no_22_child['.$value['project_file_id'].']'; ?>" value="<?php echo $value['project_file_id'] ?>" class="form-control" />
                                <span class="input-group-btn">
                                  <a target="_blank" href="<?php echo HTTP_CATALOG.substr($value['file_url'],54);?>" class="btn btn-primary"><i class="fa fa-eye"></i>查看</a>
                                  <button type="button" data-type="no_22_child_<?php echo $value['project_file_id'] ?>" data-name="<?php echo $value['project_file_id'] ?>"  data-id="no_22" data-loading-text="<?php echo $text_loading; ?>" class="button-clear btn btn-danger"><i class="fa fa-eraser"></i> <?php echo $button_clear; ?>
                                  </button>
                                </span>
                              </div>
                            </div>
                        <?php } ?>
                      <?php } ?>
                    </div>
                  </div>


=======
        
>>>>>>> d186f0ac043b98de93b00ad49075690d01e0cbaa
=======
        
>>>>>>> d186f0ac043b98de93b00ad49075690d01e0cbaa
                  <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-confirm"><?php echo $entry_confirm; ?></label>
                    <div class="col-sm-10">
                      <select name="confirm" id="input-confirm" class="form-control">
                        <?php if ($confirm) { ?>
                        <option value="0" <?php if($confirm == 0 ){ echo 'selected';} ?> ><?php echo $text_confirm_no; ?></option>
                        <option value="1" <?php if($confirm == 1 ){ echo 'selected';} ?> ><?php echo $text_confirm_yes; ?></option>
                        
                        <?php } else { ?>
                        <option value="0"><?php echo $text_confirm_no; ?></option>
                        <option value="1"><?php echo $text_confirm_yes; ?></option>
                        
                        <?php } ?>
                      </select>
                    </div>
                  </div>
                  
                  <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-submission_date"><?php echo $entry_submission_date; ?></label>
                    <div class="col-sm-3">
                      <div class="input-group date">
                        <input type="text" name="submission_date" value="<?php echo $submission_date; ?>" placeholder="<?php echo $entry_submission_date; ?>" data-date-format="YYYY-MM-DD" id="input-date-available" class="form-control" />
                        <span class="input-group-btn">
                        <button class="btn btn-default" type="button"><i class="fa fa-calendar"></i></button>
                        </span></div>
                    </div>
                  </div>


                  <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-approval_date"><?php echo $entry_approval_date; ?></label>
                    <div class="col-sm-3">
                      <div class="input-group date">
                        <input type="text" name="approval_date" value="<?php echo $approval_date; ?>" placeholder="<?php echo $entry_approval_date; ?>" data-date-format="YYYY-MM-DD" id="input-date-available" class="form-control" />
                        <span class="input-group-btn">
                        <button class="btn btn-default" type="button"><i class="fa fa-calendar"></i></button>
                        </span></div>
                    </div>
                  </div>

                  <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-agreement_date"><?php echo $entry_agreement_date; ?></label>
                    <div class="col-sm-3">
                      <div class="input-group date">
                        <input type="text" name="agreement_date" value="<?php echo $agreement_date; ?>" placeholder="<?php echo $entry_agreement_date; ?>" data-date-format="YYYY-MM-DD" id="input-date-available" class="form-control" />
                        <span class="input-group-btn">
                        <button class="btn btn-default" type="button"><i class="fa fa-calendar"></i></button>
                        </span></div>
                    </div>
                  </div>

                  <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-date_for_submission_of_grant"><?php echo $entry_date_for_submission_of_grant; ?></label>
                    <div class="col-sm-3">
                      <div class="input-group date">
                        <input type="text" name="date_for_submission_of_grant" value="<?php echo $date_for_submission_of_grant; ?>" placeholder="<?php echo $entry_date_for_submission_of_grant; ?>" data-date-format="YYYY-MM-DD" id="input-date-available" class="form-control" />
                        <span class="input-group-btn">
                        <button class="btn btn-default" type="button"><i class="fa fa-calendar"></i></button>
                        </span></div>
                    </div>
                  </div>

                  <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-grant_date"><?php echo $entry_grant_date; ?></label>
                    <div class="col-sm-3">
                      <div class="input-group date">
                        <input type="text" name="grant_date" value="<?php echo $grant_date; ?>" placeholder="<?php echo $entry_grant_date; ?>" data-date-format="YYYY-MM-DD" id="input-date-available" class="form-control" />
                        <span class="input-group-btn">
                        <button class="btn btn-default" type="button"><i class="fa fa-calendar"></i></button>
                        </span></div>
                    </div>
                  </div>

<<<<<<< HEAD
<<<<<<< HEAD
                  <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-project_end_date"><?php echo $entry_project_end_date; ?></label>
                    <div class="col-sm-3">
                      <div class="input-group date">
                        <input type="text" name="project_end_date" value="<?php echo $project_end_date; ?>" placeholder="<?php echo $entry_project_end_date; ?>" data-date-format="YYYY-MM-DD" id="input-date-available" class="form-control" />
                        <span class="input-group-btn">
                        <button class="btn btn-default" type="button"><i class="fa fa-calendar"></i></button>
                        </span></div>
                    </div>
                  </div>
=======

>>>>>>> d186f0ac043b98de93b00ad49075690d01e0cbaa
=======

>>>>>>> d186f0ac043b98de93b00ad49075690d01e0cbaa


                  <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-follow_up_history"><?php echo $entry_follow_up_history; ?></label>
                    <div class="col-sm-10">
                      <textarea name="follow_up_history" rows="5" placeholder="<?php echo $entry_follow_up_history; ?>" class="form-control"><?php echo $follow_up_history; ?></textarea>
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-remark"><?php echo $entry_remark; ?></label>
                    <div class="col-sm-10">
<<<<<<< HEAD
<<<<<<< HEAD
                      <textarea name="remark" rows="15" placeholder="<?php echo $entry_remark; ?>" class="form-control"><?php echo $remark; ?></textarea>
=======
                      <textarea name="remark" rows="5" placeholder="<?php echo $entry_remark; ?>" class="form-control"><?php echo $remark; ?></textarea>
>>>>>>> d186f0ac043b98de93b00ad49075690d01e0cbaa
=======
                      <textarea name="remark" rows="5" placeholder="<?php echo $entry_remark; ?>" class="form-control"><?php echo $remark; ?></textarea>
>>>>>>> d186f0ac043b98de93b00ad49075690d01e0cbaa
                    </div>
                  </div>

                  <!-- <div class="form-group">
                    <label class="col-sm-2 control-label" for="input-status"><?php echo $entry_status; ?></label>
                    <div class="col-sm-10">
                      <select name="status" id="input-status" class="form-control">
                        <?php if ($status) { ?>
                        <option value="0" <?php if($status == 0 ){ echo 'selected';} ?> ><?php echo $text_status_0; ?></option>
                        <option value="1" <?php if($status == 1 ){ echo 'selected';} ?> ><?php echo $text_status_1; ?></option>
                        <option value="2" <?php if($status == 2 ){ echo 'selected';} ?> ><?php echo $text_status_2; ?></option>
                        <option value="3" <?php if($status == 3 ){ echo 'selected';} ?> ><?php echo $text_status_3; ?></option>
                        <option value="4" <?php if($status == 4 ){ echo 'selected';} ?> ><?php echo $text_status_4; ?></option>
                        <?php } else { ?>
                        <option value="0"><?php echo $text_status_0; ?></option>
                        <option value="1"><?php echo $text_status_1; ?></option>
                        <option value="2"><?php echo $text_status_2; ?></option>
                        <option value="3"><?php echo $text_status_3; ?></option>
                        <option value="4"><?php echo $text_status_4; ?></option>
                        <?php } ?>
                      </select>
                    </div>
                  </div> -->
                  

                </div>
                <?php } ?>
              </div>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
  <script type="text/javascript"><!--
<?php foreach ($languages as $language) { ?>
$('#input-description<?php echo $language['language_id']; ?>').summernote({
  height: 300
});
<?php } ?>
//--></script> 
<script type="text/javascript">
  $('.testList').on('click',function(){
    var name = $(this).attr('data-name');
    console.log(name);
    layer.open({
      type: 2,
      title: 'UPLOAD',
      shadeClose: true,
      shade: 0.8,
      area: ['50%', '50%'],
      btn:['確定','返回'],
      content: 'index.php?route=project/project_progress/file_upload&token=<?php echo $token; ?>', //iframe的url
      yes: function(index, layero){
      //do something
      var body = layer.getChildFrame('body', index); //如果设定了yes回调，需进行手工关闭
      var a = body.find('input[type=\'hidden\']');
      var numArr = new Array();
        a.each(function(){
            numArr.push($(this).val());//添加至数组
        });
        console.log(numArr);
        $.ajax({
            url: 'index.php?route=project/project_progress/getFiles&token=<?php echo $token; ?>',
            type: 'post',
            dataType: 'json',
            data: {da:numArr},
            success: function(json) {
              if(json['status'] == 1){
                var a = json['project_file'];
                $.each(a,function(index, el) {
                    // console.log(index,el);
                    html = '';
                    html += '<div class="'+name+'_child_'+el.project_file_id+'"><div class="input-group"><input type="text" name="'+name+'_name['+el.project_file_id+']" value="'+el.file_name+'" id="input-'+name+'_name" class="form-control" /><input type="hidden" name="'+name+'_child['+el.project_file_id+']" value="'+el.project_file_id+'" class="form-control" /><span class="input-group-btn"><a target="_blank" href="<?php echo HTTP_CATALOG;?>'+el.file_url.substring(54)+'" class="button-upload btn btn-primary"><i class="fa fa-eye"></i>查看</a><button type="button" data-type="'+name+'_child_'+el.project_file_id+'" data-name="'+el.project_file_id+'"  data-id="'+name+'" data-loading-text="<?php echo $text_loading; ?>" class="button-clear btn btn-danger"><i class="fa fa-eraser"></i> <?php echo $button_clear; ?></button></span></div></div>';
                    $('label[for=\'input-'+name+'_name\']').parent().children('div.'+name+'').append(html);   
                });
              }
              
              parent.layer.close(index);
            },
            error: function(xhr, ajaxOptions, thrownError) {
              alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
            }
        });
        
    }
    });

});
</script>

<script type="text/javascript">
  $('.date').datetimepicker({
    pickTime: false
  });
var step = new Array();
var total = 0;

$('.button-upload').on('click', function() {
  $('#form-upload').remove();
  var name = $(this).attr('data-id');
  $('body').prepend('<form enctype="multipart/form-data" id="form-upload" style="display: none;"><input type="file" name="file" /></form>');

  $('#form-upload input[name=\'file\']').trigger('click');

  if (typeof timer != 'undefined') {
      clearInterval(timer);
  }

  timer = setInterval(function() {
    if ($('#form-upload input[name=\'file\']').val() != '') {
      clearInterval(timer);

      // Reset everything
      $('.alert').remove();
      $('#progress-bar').css('width', '0%');
      $('#progress-bar').removeClass('progress-bar-danger progress-bar-success');
      $('#progress-text').html('');

      $.ajax({
        url: 'index.php?route=project/project_progress/upload&token=<?php echo $token; ?>',
        type: 'post',
        dataType: 'json',
        data: new FormData($('#form-upload')[0]),
        cache: false,
        contentType: false,
        processData: false,
        beforeSend: function() {
          $('button[data-type=\''+name+'_upload\']').button('loading');
        },
        complete: function() {
          $('.button-upload').button('reset');
        },
        success: function(json) {
          $('input[name=\''+name+'_name\']').attr('value', json['mask']);
          $('input[name=\''+name+'_url\']').attr('value', json['project_file_id']);
          $('button[data-clear=\''+name+'_clear\']').attr('data-name', json['project_file_id']);
          if (json['error']) {
            alert("文件上傳類型不符合");return false;
          }

          if (json['step']) {
            step = json['step'];
            total = step.length;

            if (json['overwrite'].length) {
              html = '';

              for (i = 0; i < json['overwrite'].length; i++) {
                html += json['overwrite'][i] + "\n";
              }

              $('#overwrite').html(html);

              $('#button-continue').prop('disabled', false);
            } else {
              next();
            }
            alert('上傳成功');return false;
          }
        },
        error: function(xhr, ajaxOptions, thrownError) {
          alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
        }
      });
    }
  }, 500);
});


$('body').on('click','.button-clear', function() {
  // console.log(111);
  var data_type = $(this).attr('data-type');
  var da = {
      name:$(this).attr('data-name'),
      id:$(this).attr('data-id'),
      project_progress_id:$("input[name=\'project_progress_id\']").val(),
  };
  var id = $(this).attr('data-id');
  var r=confirm("Are you sure?");
  if( r == true ){
  $.ajax({
    url: 'index.php?route=project/project_progress/clear&token=<?php echo $token; ?>',
    data:da,
    dataType: 'json',
    beforeSend: function() {
      $('#button-clear').button('loading');
    },
    complete: function() {
      $('#button-clear').button('reset');
    },
    success: function(json) {
      $('.alert').remove();

      if (json['error']) {
        $('#content > .container-fluid').prepend('<div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> ' + json['error'] + ' <button type="button" class="close" data-dismiss="alert">&times;</button></div>');
      }

      if (json['success']) {
        $('input[name=\''+id+'_name\']').attr('value', '');
        $('input[name=\''+id+'_url\']').attr('value','');
          $('button[data-clear=\''+id+'_clear\']').attr('data-name', '');
          $('.'+data_type+'').remove();
          alert('Clear Success'); return false;
      }
    },
    error: function(xhr, ajaxOptions, thrownError) {
      alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
    }
  });
}
});
</script>



<script type="text/javascript">
$('input[name=\'vendor_3\']').autocomplete({
  'source': function(request, response) {
    $.ajax({
      url: 'index.php?route=project/project_progress/autocomplete3&token=<?php echo $token; ?>&filter_name=' +  encodeURIComponent(request),
      dataType: 'json',
      success: function(json) {
        json.unshift({
          manufacturer_id: 0,
          name: '<?php echo $text_none; ?>'
        });

        response($.map(json, function(item) {
          return {
            label: item['name'],
            value: item['vendor_details_id']
          }
        }));
      }
    });
  },
  'select': function(item) {
    $('input[name=\'vendor_3\']').val(item['label']);
    $('input[name=\'vendor_3_id\']').val(item['value']);
  }
});
</script>
<script type="text/javascript">
$('input[name=\'vendor_2\']').autocomplete({
  'source': function(request, response) {
    $.ajax({
      url: 'index.php?route=project/project_progress/autocomplete3&token=<?php echo $token; ?>&filter_name=' +  encodeURIComponent(request),
      dataType: 'json',
      success: function(json) {
        json.unshift({
          manufacturer_id: 0,
          name: '<?php echo $text_none; ?>'
        });

        response($.map(json, function(item) {
          return {
            label: item['name'],
            value: item['vendor_details_id']
          }
        }));
      }
    });
  },
  'select': function(item) {
    $('input[name=\'vendor_2\']').val(item['label']);
    $('input[name=\'vendor_2_id\']').val(item['value']);
  }
});
</script>
<script type="text/javascript">
$('input[name=\'vendor_1\']').autocomplete({
  'source': function(request, response) {
    $.ajax({
      url: 'index.php?route=project/project_progress/autocomplete3&token=<?php echo $token; ?>&filter_name=' +  encodeURIComponent(request),
      dataType: 'json',
      success: function(json) {
        json.unshift({
          manufacturer_id: 0,
          name: '<?php echo $text_none; ?>'
        });

        response($.map(json, function(item) {
          return {
            label: item['name'],
            value: item['vendor_details_id']
          }
        }));
      }
    });
  },
  'select': function(item) {
    $('input[name=\'vendor_1\']').val(item['label']);
    $('input[name=\'vendor_1_id\']').val(item['value']);
  }
});
</script>

<script type="text/javascript">
$('input[name=\'project_customer\']').autocomplete({
  'source': function(request, response) {
    $.ajax({
      url: 'index.php?route=project/project_progress/autocomplete2&token=<?php echo $token; ?>&filter_name=' +  encodeURIComponent(request),
      dataType: 'json',
      success: function(json) {
        json.unshift({
          manufacturer_id: 0,
          name: '<?php echo $text_none; ?>'
        });

        response($.map(json, function(item) {
          return {
            label: item['name'],
            value: item['project_customer_id']
          }
        }));
      }
    });
  },
  'select': function(item) {
    $('input[name=\'project_customer\']').val(item['label']);
    $('input[name=\'project_customer_id\']').val(item['value']);
  }
});
</script>
  <script type="text/javascript"><!--
$('#language a:first').tab('show');
//--></script></div>
<?php echo $footer; ?>